package MyArray;

public class SparseMatrix {
    public TripleNode[] data;
    // 行
    public int row;
    // 列
    public int cols;
    // 非零的元素个数
    public int nums;

    public SparseMatrix(int maxSiez){
        data = new TripleNode[maxSiez];
        for(int i=0; i<data.length; i++){
            data[i] = new TripleNode();
        }
        row = cols = nums = 0;
    }
}
